const UsersService = require('../service/users');
class UsersController {
  async page(ctx, next) {
    // 1. 获取参数
    const { page, size } = ctx.query;
    let data = await UsersService.page({ page, size })
    ctx.body = data;
  }
}

module.exports = new UsersController